﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000699 RID: 1689
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetCurAssistScRsp : IMessage<GetCurAssistScRsp>, IMessage, IEquatable<GetCurAssistScRsp>, IDeepCloneable<GetCurAssistScRsp>, IBufferMessage
	{
		// Token: 0x170015C8 RID: 5576
		// (get) Token: 0x06004C2E RID: 19502 RVA: 0x000D0AF5 File Offset: 0x000CECF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetCurAssistScRsp> Parser
		{
			get
			{
				return GetCurAssistScRsp._parser;
			}
		}

		// Token: 0x170015C9 RID: 5577
		// (get) Token: 0x06004C2F RID: 19503 RVA: 0x000D0AFC File Offset: 0x000CECFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetCurAssistScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170015CA RID: 5578
		// (get) Token: 0x06004C30 RID: 19504 RVA: 0x000D0B0E File Offset: 0x000CED0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetCurAssistScRsp.Descriptor;
			}
		}

		// Token: 0x06004C31 RID: 19505 RVA: 0x000D0B15 File Offset: 0x000CED15
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurAssistScRsp()
		{
		}

		// Token: 0x06004C32 RID: 19506 RVA: 0x000D0B20 File Offset: 0x000CED20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurAssistScRsp(GetCurAssistScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.assist_ = ((other.assist_ != null) ? other.assist_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004C33 RID: 19507 RVA: 0x000D0B6C File Offset: 0x000CED6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetCurAssistScRsp Clone()
		{
			return new GetCurAssistScRsp(this);
		}

		// Token: 0x170015CB RID: 5579
		// (get) Token: 0x06004C34 RID: 19508 RVA: 0x000D0B74 File Offset: 0x000CED74
		// (set) Token: 0x06004C35 RID: 19509 RVA: 0x000D0B7C File Offset: 0x000CED7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170015CC RID: 5580
		// (get) Token: 0x06004C36 RID: 19510 RVA: 0x000D0B85 File Offset: 0x000CED85
		// (set) Token: 0x06004C37 RID: 19511 RVA: 0x000D0B8D File Offset: 0x000CED8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerAssistInfo Assist
		{
			get
			{
				return this.assist_;
			}
			set
			{
				this.assist_ = value;
			}
		}

		// Token: 0x06004C38 RID: 19512 RVA: 0x000D0B96 File Offset: 0x000CED96
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetCurAssistScRsp);
		}

		// Token: 0x06004C39 RID: 19513 RVA: 0x000D0BA4 File Offset: 0x000CEDA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetCurAssistScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Assist, other.Assist) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004C3A RID: 19514 RVA: 0x000D0BF4 File Offset: 0x000CEDF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.assist_ != null)
			{
				num ^= this.Assist.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004C3B RID: 19515 RVA: 0x000D0C49 File Offset: 0x000CEE49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004C3C RID: 19516 RVA: 0x000D0C51 File Offset: 0x000CEE51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004C3D RID: 19517 RVA: 0x000D0C5C File Offset: 0x000CEE5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.assist_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Assist);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004C3E RID: 19518 RVA: 0x000D0CB8 File Offset: 0x000CEEB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.assist_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Assist);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004C3F RID: 19519 RVA: 0x000D0D10 File Offset: 0x000CEF10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetCurAssistScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.assist_ != null)
			{
				if (this.assist_ == null)
				{
					this.Assist = new PlayerAssistInfo();
				}
				this.Assist.MergeFrom(other.Assist);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004C40 RID: 19520 RVA: 0x000D0D78 File Offset: 0x000CEF78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004C41 RID: 19521 RVA: 0x000D0D84 File Offset: 0x000CEF84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.assist_ == null)
						{
							this.Assist = new PlayerAssistInfo();
						}
						input.ReadMessage(this.Assist);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001E22 RID: 7714
		private static readonly MessageParser<GetCurAssistScRsp> _parser = new MessageParser<GetCurAssistScRsp>(() => new GetCurAssistScRsp());

		// Token: 0x04001E23 RID: 7715
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001E24 RID: 7716
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04001E25 RID: 7717
		private uint retcode_;

		// Token: 0x04001E26 RID: 7718
		public const int AssistFieldNumber = 13;

		// Token: 0x04001E27 RID: 7719
		private PlayerAssistInfo assist_;
	}
}
